package main

import "fmt"

func deleteByKey() {
	map1 := map[string]string{"a": "A", "b": "B"}
	fmt.Println("执行删除key b前", map1)
	delete(map1, "b")
	fmt.Println("执行删除key b后", map1)
}

func main() {
	deleteByKey()
}
